package com.thinkTank.oa.entity;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/***
 * 
 * @author dq
 * @date 2018-07-19
 * 角色
 */
public class Role implements Serializable{
	private Integer pid;
	@NotNull(message = "角色名不能为空")
	@NotEmpty(message="角色名不能为空")
	private String name;
	private List<Permission> perList;
	
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<Permission> getPerList() {
		return perList;
	}
	public void setPerList(List<Permission> perList) {
		this.perList = perList;
	}
	private static final long serialVersionUID = 1L;

}
